package com.qf.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 信息实体
 */
public class Message {
    //信息实体id
    private Integer mId;

    //信息内容
    private String mMsg;

    //信息时间
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date mTime;

    //用户id
    private Integer uId;

    //玩吧id
    private Integer uPlayerId;

    private User user;
    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column message.m_id
     *
     * @return the value of message.m_id
     *
     * @mbggenerated Sat Aug 08 11:13:10 CST 2020
     */
    public Integer getmId() {
        return mId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column message.m_id
     *
     * @param mId the value for message.m_id
     *
     * @mbggenerated Sat Aug 08 11:13:10 CST 2020
     */
    public void setmId(Integer mId) {
        this.mId = mId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column message.m_msg
     *
     * @return the value of message.m_msg
     *
     * @mbggenerated Sat Aug 08 11:13:10 CST 2020
     */
    public String getmMsg() {
        return mMsg;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column message.m_msg
     *
     * @param mMsg the value for message.m_msg
     *
     * @mbggenerated Sat Aug 08 11:13:10 CST 2020
     */
    public void setmMsg(String mMsg) {
        this.mMsg = mMsg == null ? null : mMsg.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column message.m_time
     *
     * @return the value of message.m_time
     *
     * @mbggenerated Sat Aug 08 11:13:10 CST 2020
     */
    public Date getmTime() {
        return mTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column message.m_time
     *
     * @param mTime the value for message.m_time
     *
     * @mbggenerated Sat Aug 08 11:13:10 CST 2020
     */
    public void setmTime(Date mTime) {
        this.mTime = mTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column message.u_id
     *
     * @return the value of message.u_id
     *
     * @mbggenerated Sat Aug 08 11:13:10 CST 2020
     */
    public Integer getuId() {
        return uId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column message.u_id
     *
     * @param uId the value for message.u_id
     *
     * @mbggenerated Sat Aug 08 11:13:10 CST 2020
     */
    public void setuId(Integer uId) {
        this.uId = uId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column message.u_friend_id
     *
     * @return the value of message.u_friend_id
     *
     * @mbggenerated Sat Aug 08 11:13:10 CST 2020
     */
    public Integer getuPlayerId() {
        return uPlayerId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column message.u_friend_id
     *
     * @param uPlayerId the value for message.u_friend_id
     *
     * @mbggenerated Sat Aug 08 11:13:10 CST 2020
     */
    public void setuPlayerId(Integer uPlayerId) {
        this.uPlayerId = uPlayerId;
    }
}